package com.example.simplesvc.concurrent.lock;


import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DBLockFactory {

    @Autowired
    SqlSessionFactory factory;

    public DBLock getLock(String name) {
        return new DBLock(name, factory);
    }
}
